package Q1.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Blob;
import java.sql.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    /**
     * Empty student, when failed query will return it.
     */
    public static final Student EMPTY_STUDENT = new Student(-1, "EMPTY_STUDENT");

    private int id;
    private String no;
    private String name;
    private int age;
    private Date birthday;
    private Blob photo;

    public Student(int id, String name) {
        this.id = id;
        this.name = name;
    }

}
